//
//  SpeakerModule.m
//  CocoaSynth
//
//  Created by Pierre DUCHENE on 12/02/10.
//  Copyright 2010 Pierre DUCHENE. All rights reserved.
//

#import "ModuleSpeaker.h"
#import "AudioWrapper.h"
#import "Sample.h"

@implementation ModuleSpeaker

- (void)read {
	[super read];
	
	if (!inputSample) {
		inputSample = [[Sample alloc] init];
	}
}

- (void)compute {
	[[AudioWrapper sharedWrapper] addDataToBuffer:[inputSample voltages]];
}

@end

